<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分支合并通知</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            padding: 20px;
            margin: 0;
        }
        .notification {
            max-width: 500px;
            margin: 0 auto;
            padding: 20px;
            border: none;
            border-radius: 5px;
            /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
        }
        h1 {
            color: #333;
            margin-top: 0;
        }
        .content-item {
            margin: 15px 0;
            display: flex;
            align-items: center;
        }
        .content-label {
            font-weight: bold;
            text-align: right;
            flex: 0.5;
            padding-right: 10px;
        }
        .content-value {
            flex: 2.5;
            text-align: left;
        }
        .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            padding: 8px 16px;
            background-color: #0078d7;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .close-btn:hover {
            background-color: #106ebe;
        }
    </style>
</head>
<body>
    <div class="notification">
        <h1>分支已合并</h1>
        <p id="content"></p>
        <button class="close-btn" onclick="window.close()">关闭</button>
    </div>

    <script>
        const params = new URLSearchParams(window.location.search);
        const name = params.get('name');
        const path = params.get('path');
        const branch = params.get('branch');
        
        document.getElementById('content').innerHTML = `
            <div class="content-item">
                <div class="content-label">监控项:</div>
                <div class="content-value">${name}</div>
            </div>
            <div class="content-item">
                <div class="content-label">目录:</div>
                <div class="content-value">${path}</div>
            </div>
            <div class="content-item">
                <div class="content-label">分支:</div>
                <div class="content-value">${branch}</div>
            </div>
        `;
    </script>
</body>
</html>